createInterstitial

fun createInterstitial(configurationID: String, activity: Activity, afterInterstitial: () -> Unit, lifecycleCallbacks: <Error class: unknown class>? = null): Int

Creates Interstitial ad which will be shown in the process of transition from one activity to another. You can also configure what to do after Interstitial in afterInterstitial

Return

the id Int of the object for the factory to manage it

Parameters

configurationID

id used to fetch the unit configuration

activity

current activity where the interstitial must be shown, if activity dies the interstitial will be invalidated and destroyed

afterInterstitial

this is called after ad fails to show or user closes the fullscreen

lifecycleCallbacks

(optional) go to InterstitialEventListener to know when the callbacks are called